package cn.rongdao.jrkabao.model.takephoto;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.takephoto.ValidateIDCardInfoBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/5
 */

public class IdCardNameAndNumberModel extends BaseSuDaiModel {

    public static IdCardNameAndNumberModel getInstance() {
        return getPresent(IdCardNameAndNumberModel.class);
    }

    public void execute(Observer<ValidateIDCardInfoBean> observer) {
        Observable<ValidateIDCardInfoBean> observable = mServletApi.getIdCardNameAndNumber(mParams).map(new HttpFunction<ValidateIDCardInfoBean>());
        toSubscribe(observable, observer);
    }
}